<%@ page import="java.util.List" %>
<%--
  Created by IntelliJ IDEA.
  User: fujia
  Date: 2016/5/24
  Time: 18:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en-US"> <![endif]-->
<!--[if IE 7]>    <html class="lt-ie9 lt-ie8" lang="en-US"> <![endif]-->
<!--[if IE 8]>    <html class="lt-ie9" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en-US"> <!--<![endif]-->
<%@include file="common/head.jsp"%>

<body id="page-block">

    <%@include file="common/nav.jsp"%>

    <!-- Start of Page Container -->
    <div class="page-container">
        <div class="container">
            <div class="row">

                <!-- start of page content -->
                <div class="span page-content">

                    <!-- Basic Home Page Template -->
                    <div class="row home-category-list-area">
                        <div class="span8">
                            <h2>论坛版块</h2>
                        </div>
                    </div>

                    <%
                        List<String> title = (List<String>)session.getAttribute("title");
                        List<String> text = (List<String>)session.getAttribute("text");
                    %>

                    <div class="row-fluid top-cats">

                        <% for (int i = 0;i < 3;i++) { %>
                            <section class="span4">
                                <h4 class="category">
                                    <a href="/article.action?block=<%out.print(i+1);%>"><%out.print((String)title.get(i));%></a>
                                </h4>
                                <div class="category-description">
                                    <p><%out.print((String)text.get(i));%></p>
                                </div>
                            </section>
                        <% } %>

                    </div>

                    <div class="row-fluid top-cats">

                        <% for (int i = 3;i < 6;i++) { %>
                            <section class="span4">
                                <h4 class="category">
                                    <a href="/article.action?block=<%out.print(i+1);%>"><%out.print((String)title.get(i));%></a>
                                </h4>
                                <div class="category-description">
                                    <p><%out.print((String)text.get(i));%></p>
                                </div>
                            </section>
                        <% } %>

                    </div>

                </div>
                <!-- end of page content -->

            </div>
        </div>
    </div>
    <!-- End of Page Container -->

    <%@include file="common/foot.jsp"%>

    <a href="#top" id="scroll-top"></a>

    <%@include file="common/script.jsp"%>

</body>
</html>

